home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / lists / lindex < prev    next >
Encoding:
Text File  |  1993-10-26  |  636 b   |  18 lines  |  [TEXT/$Tcl]

  1.  
  2.           lindex list index
  3.  
  4.  
  5.      DESCRIPTION
  6.           This command treats list as  a  Tcl  list  and  returns  the
  7.           index'th  element  from it (0 refers to the first element of
  8.           the list).  In extracting the element, lindex  observes  the
  9.           same  rules  concerning braces and quotes and backslashes as
  10.           the Tcl command interpreter; however, variable  substitution
  11.           and command substitution do not occur.  If index is negative
  12.           or greater than or equal to the number of elements in value,
  13.           then an empty string is returned.
  14.  
  15.  
  16.      KEYWORDS
  17.           element, index, list
  18.